.modal {
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow-y: auto;
  background-color: rgba($color: #000000, $alpha: 0.5);
  &::-webkit-scrollbar {
    width: 2px;
  }

  &Container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 64px;
    margin-left: 48px;
    margin-right: 48px;
    border: 1px solid rgb(244 244 247 / 10%);
    border-radius: 30px;
    background-color: var(--bg-card);
    animation: scale-up-ver-center 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  }

  .btnClose {
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;

    svg {
      width: 24px;
      height: 24px;

      path {
        fill: var(--color-text);
        transition: fill 0.3s;
      }
    }

    &:focus-visible {
      outline: 1px solid var(--active-gold);

      svg path {
        fill: var(--active-gold);
      }
    }

    &:hover svg path {
      fill: var(--hover-gold);
    }

    &:active svg path {
      fill: var(--active-gold);
    }
  }
}

@media screen and (max-width: 768px) {
  .modal {
    &Container {
      padding: 24px;
    }
  }
}
